package com.ruoyi.erp.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.erp.mapper.IErpMapper;
import com.ruoyi.erp.service.IErpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DS(value="slave")
public class ErpServiceImpl implements IErpService {
	@Autowired
	private IErpMapper iErpMapper;

	@Override
	public List<String> getSyncProject() {
		return iErpMapper.getSyncProject();
	}

	@Override
	public List<String> getReceivePerson() {
		return iErpMapper.getReceivePerson();
	}

	@Override
	public Integer sendMessage(String submitId, String userId, String title) {
		return iErpMapper.sendMessage(submitId,userId,title);
	}
}
